Integrand size = 35, antiderivative size = 402 \[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2 \left (45 a^3 b B+435 a b^3 B-10 a^4 C+21 b^4 (9 A+7 C)+3 a^2 b^2 (161 A+93 C)\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{315 b^2 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {2 \left (a^2-b^2\right ) \left (45 a^2 b B+75 b^3 B-10 a^3 C+6 a b^2 (28 A+19 C)\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )}{315 b^2 d \sqrt {a+b \cos (c+d x)}}+\frac {2 \left (45 a^2 b B+75 b^3 B-10 a^3 C+6 a b^2 (28 A+19 C)\right ) \sqrt {a+b \cos (c+d x)} \sin (c+d x)}{315 b d}+\frac {2 \left (63 A b^2+45 a b B-10 a^2 C+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2} \sin (c+d x)}{315 b d}+\frac {2 (9 b B-2 a C) (a+b \cos (c+d x))^{5/2} \sin (c+d x)}{63 b d}+\frac {2 C (a+b \cos (c+d x))^{7/2} \sin (c+d x)}{9 b d} \]
2/315*(63*A*b^2+45*B*a*b-10*C*a^2+49*C*b^2)*(a+b*cos(d*x+c))^(3/2)*sin(d*x +c)/b/d+2/63*(9*B*b-2*C*a)*(a+b*cos(d*x+c))^(5/2)*sin(d*x+c)/b/d+2/9*C*(a+ b*cos(d*x+c))^(7/2)*sin(d*x+c)/b/d+2/315*(45*B*a^2*b+75*B*b^3-10*a^3*C+6*a *b^2*(28*A+19*C))*sin(d*x+c)*(a+b*cos(d*x+c))^(1/2)/b/d+2/315*(45*B*a^3*b+ 435*B*a*b^3-10*a^4*C+21*b^4*(9*A+7*C)+3*a^2*b^2*(161*A+93*C))*(cos(1/2*d*x +1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2)*( b/(a+b))^(1/2))*(a+b*cos(d*x+c))^(1/2)/b^2/d/((a+b*cos(d*x+c))/(a+b))^(1/2 )-2/315*(a^2-b^2)*(45*B*a^2*b+75*B*b^3-10*a^3*C+6*a*b^2*(28*A+19*C))*(cos( 1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^ (1/2)*(b/(a+b))^(1/2))*((a+b*cos(d*x+c))/(a+b))^(1/2)/b^2/d/(a+b*cos(d*x+c ))^(1/2)
Time = 3.67 (sec) , antiderivative size = 327, normalized size of antiderivative = 0.81 \[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {8 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \left (b^2 \left (405 a^2 b B+75 b^3 B+5 a^3 (63 A+31 C)+3 a b^2 (119 A+87 C)\right ) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )+\left (45 a^3 b B+435 a b^3 B-10 a^4 C+21 b^4 (9 A+7 C)+3 a^2 b^2 (161 A+93 C)\right ) \left ((a+b) E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )-a \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )\right )\right )+b (a+b \cos (c+d x)) \left (2 \left (540 a^2 b B+345 b^3 B+20 a^3 C+3 a b^2 (308 A+249 C)\right ) \sin (c+d x)+b \left (\left (252 A b^2+540 a b B+300 a^2 C+266 b^2 C\right ) \sin (2 (c+d x))+5 b (2 (9 b B+19 a C) \sin (3 (c+d x))+7 b C \sin (4 (c+d x)))\right )\right )}{1260 b^2 d \sqrt {a+b \cos (c+d x)}} \]
(8*Sqrt[(a + b*Cos[c + d*x])/(a + b)]*(b^2*(405*a^2*b*B + 75*b^3*B + 5*a^3 *(63*A + 31*C) + 3*a*b^2*(119*A + 87*C))*EllipticF[(c + d*x)/2, (2*b)/(a + b)] + (45*a^3*b*B + 435*a*b^3*B - 10*a^4*C + 21*b^4*(9*A + 7*C) + 3*a^2*b ^2*(161*A + 93*C))*((a + b)*EllipticE[(c + d*x)/2, (2*b)/(a + b)] - a*Elli pticF[(c + d*x)/2, (2*b)/(a + b)])) + b*(a + b*Cos[c + d*x])*(2*(540*a^2*b *B + 345*b^3*B + 20*a^3*C + 3*a*b^2*(308*A + 249*C))*Sin[c + d*x] + b*((25 2*A*b^2 + 540*a*b*B + 300*a^2*C + 266*b^2*C)*Sin[2*(c + d*x)] + 5*b*(2*(9* b*B + 19*a*C)*Sin[3*(c + d*x)] + 7*b*C*Sin[4*(c + d*x)]))))/(1260*b^2*d*Sq rt[a + b*Cos[c + d*x]])
Time = 2.11 (sec) , antiderivative size = 412, normalized size of antiderivative = 1.02, number of steps used = 21, number of rules used = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {3042, 3502, 27, 3042, 3232, 27, 3042, 3232, 27, 3042, 3232, 27, 3042, 3231, 3042, 3134, 3042, 3132, 3142, 3042, 3140}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{5/2} \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {2 \int \frac {1}{2} (a+b \cos (c+d x))^{5/2} (b (9 A+7 C)+(9 b B-2 a C) \cos (c+d x))dx}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int (a+b \cos (c+d x))^{5/2} (b (9 A+7 C)+(9 b B-2 a C) \cos (c+d x))dx}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{5/2} \left (b (9 A+7 C)+(9 b B-2 a C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3232 |
\(\displaystyle \frac {\frac {2}{7} \int \frac {1}{2} (a+b \cos (c+d x))^{3/2} \left (3 b (21 a A+15 b B+13 a C)+\left (-10 C a^2+45 b B a+63 A b^2+49 b^2 C\right ) \cos (c+d x)\right )dx+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{7} \int (a+b \cos (c+d x))^{3/2} \left (3 b (21 a A+15 b B+13 a C)+\left (-10 C a^2+45 b B a+63 A b^2+49 b^2 C\right ) \cos (c+d x)\right )dx+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \int \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{3/2} \left (3 b (21 a A+15 b B+13 a C)+\left (-10 C a^2+45 b B a+63 A b^2+49 b^2 C\right ) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3232 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {2}{5} \int \frac {3}{2} \sqrt {a+b \cos (c+d x)} \left (b \left (5 (21 A+11 C) a^2+120 b B a+7 b^2 (9 A+7 C)\right )+\left (-10 C a^3+45 b B a^2+6 b^2 (28 A+19 C) a+75 b^3 B\right ) \cos (c+d x)\right )dx+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \int \sqrt {a+b \cos (c+d x)} \left (b \left (5 (21 A+11 C) a^2+120 b B a+7 b^2 (9 A+7 C)\right )+\left (-10 C a^3+45 b B a^2+6 b^2 (28 A+19 C) a+75 b^3 B\right ) \cos (c+d x)\right )dx+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \int \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )} \left (b \left (5 (21 A+11 C) a^2+120 b B a+7 b^2 (9 A+7 C)\right )+\left (-10 C a^3+45 b B a^2+6 b^2 (28 A+19 C) a+75 b^3 B\right ) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3232 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {2}{3} \int \frac {b \left (5 (63 A+31 C) a^3+405 b B a^2+3 b^2 (119 A+87 C) a+75 b^3 B\right )+\left (-10 C a^4+45 b B a^3+3 b^2 (161 A+93 C) a^2+435 b^3 B a+21 b^4 (9 A+7 C)\right ) \cos (c+d x)}{2 \sqrt {a+b \cos (c+d x)}}dx+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \int \frac {b \left (5 (63 A+31 C) a^3+405 b B a^2+3 b^2 (119 A+87 C) a+75 b^3 B\right )+\left (-10 C a^4+45 b B a^3+3 b^2 (161 A+93 C) a^2+435 b^3 B a+21 b^4 (9 A+7 C)\right ) \cos (c+d x)}{\sqrt {a+b \cos (c+d x)}}dx+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \int \frac {b \left (5 (63 A+31 C) a^3+405 b B a^2+3 b^2 (119 A+87 C) a+75 b^3 B\right )+\left (-10 C a^4+45 b B a^3+3 b^2 (161 A+93 C) a^2+435 b^3 B a+21 b^4 (9 A+7 C)\right ) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3231 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {\left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \int \sqrt {a+b \cos (c+d x)}dx}{b}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \int \frac {1}{\sqrt {a+b \cos (c+d x)}}dx}{b}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {\left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \int \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}dx}{b}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \int \frac {1}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{b}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3134 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {\left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}dx}{b \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \int \frac {1}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{b}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {\left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} \int \sqrt {\frac {a}{a+b}+\frac {b \sin \left (c+d x+\frac {\pi }{2}\right )}{a+b}}dx}{b \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \int \frac {1}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{b}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3132 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {2 \left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{b d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \int \frac {1}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{b}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3142 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {2 \left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{b d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}}dx}{b \sqrt {a+b \cos (c+d x)}}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {3}{5} \left (\frac {1}{3} \left (\frac {2 \left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{b d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin \left (c+d x+\frac {\pi }{2}\right )}{a+b}}}dx}{b \sqrt {a+b \cos (c+d x)}}\right )+\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
\(\Big \downarrow \) 3140 |
\(\displaystyle \frac {\frac {1}{7} \left (\frac {2 \sin (c+d x) \left (-10 a^2 C+45 a b B+63 A b^2+49 b^2 C\right ) (a+b \cos (c+d x))^{3/2}}{5 d}+\frac {3}{5} \left (\frac {2 \sin (c+d x) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {a+b \cos (c+d x)}}{3 d}+\frac {1}{3} \left (\frac {2 \left (-10 a^4 C+45 a^3 b B+3 a^2 b^2 (161 A+93 C)+435 a b^3 B+21 b^4 (9 A+7 C)\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{b d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {2 \left (a^2-b^2\right ) \left (-10 a^3 C+45 a^2 b B+6 a b^2 (28 A+19 C)+75 b^3 B\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 b}{a+b}\right )}{b d \sqrt {a+b \cos (c+d x)}}\right )\right )\right )+\frac {2 (9 b B-2 a C) \sin (c+d x) (a+b \cos (c+d x))^{5/2}}{7 d}}{9 b}+\frac {2 C \sin (c+d x) (a+b \cos (c+d x))^{7/2}}{9 b d}\) |
(2*C*(a + b*Cos[c + d*x])^(7/2)*Sin[c + d*x])/(9*b*d) + ((2*(9*b*B - 2*a*C )*(a + b*Cos[c + d*x])^(5/2)*Sin[c + d*x])/(7*d) + ((2*(63*A*b^2 + 45*a*b* B - 10*a^2*C + 49*b^2*C)*(a + b*Cos[c + d*x])^(3/2)*Sin[c + d*x])/(5*d) + (3*(((2*(45*a^3*b*B + 435*a*b^3*B - 10*a^4*C + 21*b^4*(9*A + 7*C) + 3*a^2* b^2*(161*A + 93*C))*Sqrt[a + b*Cos[c + d*x]]*EllipticE[(c + d*x)/2, (2*b)/ (a + b)])/(b*d*Sqrt[(a + b*Cos[c + d*x])/(a + b)]) - (2*(a^2 - b^2)*(45*a^ 2*b*B + 75*b^3*B - 10*a^3*C + 6*a*b^2*(28*A + 19*C))*Sqrt[(a + b*Cos[c + d *x])/(a + b)]*EllipticF[(c + d*x)/2, (2*b)/(a + b)])/(b*d*Sqrt[a + b*Cos[c + d*x]]))/3 + (2*(45*a^2*b*B + 75*b^3*B - 10*a^3*C + 6*a*b^2*(28*A + 19*C ))*Sqrt[a + b*Cos[c + d*x]]*Sin[c + d*x])/(3*d)))/5)/7)/(9*b)
3.11.31.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[2*(Sqrt[a + b]/d)*EllipticE[(1/2)*(c - Pi/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c + d*x])/(a + b)] Int[Sqrt[a/(a + b) + ( b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2 , 0] && !GtQ[a + b, 0]
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/(d*S qrt[a + b]))*EllipticF[(1/2)*(c - Pi/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[ {a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a + b*Sin[c + d*x]] Int[1/Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && !GtQ[a + b, 0]
Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])/Sqrt[(a_) + (b_.)*sin[(e_.) + ( f_.)*(x_)]], x_Symbol] :> Simp[(b*c - a*d)/b Int[1/Sqrt[a + b*Sin[e + f*x ]], x], x] + Simp[d/b Int[Sqrt[a + b*Sin[e + f*x]], x], x] /; FreeQ[{a, b , c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/( f*(m + 1))), x] + Simp[1/(m + 1) Int[(a + b*Sin[e + f*x])^(m - 1)*Simp[b* d*m + a*c*(m + 1) + (a*d*m + b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ [{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && IntegerQ[2*m]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(2142\) vs. \(2(432)=864\).
Time = 22.93 (sec) , antiderivative size = 2143, normalized size of antiderivative = 5.33
method | result | size |
default | \(\text {Expression too large to display}\) | \(2143\) |
parts | \(\text {Expression too large to display}\) | \(2486\) |
-2/315*((2*cos(1/2*d*x+1/2*c)^2*b+a-b)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-483*A *(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b) )^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^2*b^3+189*A*(si n(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1 /2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a*b^4+147*C*(sin(1/2* d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*El lipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a*b^4+483*A*(sin(1/2*d*x+1/ 2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*Elliptic E(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^3*b^2-1120*C*b^5*cos(1/2*d*x+1/ 2*c)*sin(1/2*d*x+1/2*c)^10-45*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*s in(1/2*d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/ (a-b))^(1/2))*a^4*b-30*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2* d*x+1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^ (1/2))*a^2*b^3-124*C*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+ 1/2*c)^2+(a+b)/(a-b))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2 ))*a^3*b^2+45*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c )^2+(a+b)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^ 4*b-45*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+ b)/(a-b))^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),(-2*b/(a-b))^(1/2))*a^3*b^2+4 35*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*b/(a-b)*sin(1/2*d*x+1/2*c)^2+(a+b...
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.16 (sec) , antiderivative size = 698, normalized size of antiderivative = 1.74 \[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {\sqrt {2} {\left (-20 i \, C a^{5} + 90 i \, B a^{4} b + 3 i \, {\left (7 \, A + 31 \, C\right )} a^{3} b^{2} - 345 i \, B a^{2} b^{3} - 3 i \, {\left (231 \, A + 163 \, C\right )} a b^{4} - 225 i \, B b^{5}\right )} \sqrt {b} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right ) + \sqrt {2} {\left (20 i \, C a^{5} - 90 i \, B a^{4} b - 3 i \, {\left (7 \, A + 31 \, C\right )} a^{3} b^{2} + 345 i \, B a^{2} b^{3} + 3 i \, {\left (231 \, A + 163 \, C\right )} a b^{4} + 225 i \, B b^{5}\right )} \sqrt {b} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right ) - 3 \, \sqrt {2} {\left (10 i \, C a^{4} b - 45 i \, B a^{3} b^{2} - 3 i \, {\left (161 \, A + 93 \, C\right )} a^{2} b^{3} - 435 i \, B a b^{4} - 21 i \, {\left (9 \, A + 7 \, C\right )} b^{5}\right )} \sqrt {b} {\rm weierstrassZeta}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right )\right ) - 3 \, \sqrt {2} {\left (-10 i \, C a^{4} b + 45 i \, B a^{3} b^{2} + 3 i \, {\left (161 \, A + 93 \, C\right )} a^{2} b^{3} + 435 i \, B a b^{4} + 21 i \, {\left (9 \, A + 7 \, C\right )} b^{5}\right )} \sqrt {b} {\rm weierstrassZeta}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right )\right ) + 6 \, {\left (35 \, C b^{5} \cos \left (d x + c\right )^{3} + 5 \, C a^{3} b^{2} + 135 \, B a^{2} b^{3} + {\left (231 \, A + 163 \, C\right )} a b^{4} + 75 \, B b^{5} + 5 \, {\left (19 \, C a b^{4} + 9 \, B b^{5}\right )} \cos \left (d x + c\right )^{2} + {\left (75 \, C a^{2} b^{3} + 135 \, B a b^{4} + 7 \, {\left (9 \, A + 7 \, C\right )} b^{5}\right )} \cos \left (d x + c\right )\right )} \sqrt {b \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{945 \, b^{3} d} \]
1/945*(sqrt(2)*(-20*I*C*a^5 + 90*I*B*a^4*b + 3*I*(7*A + 31*C)*a^3*b^2 - 34 5*I*B*a^2*b^3 - 3*I*(231*A + 163*C)*a*b^4 - 225*I*B*b^5)*sqrt(b)*weierstra ssPInverse(4/3*(4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, 1/3*(3*b* cos(d*x + c) + 3*I*b*sin(d*x + c) + 2*a)/b) + sqrt(2)*(20*I*C*a^5 - 90*I*B *a^4*b - 3*I*(7*A + 31*C)*a^3*b^2 + 345*I*B*a^2*b^3 + 3*I*(231*A + 163*C)* a*b^4 + 225*I*B*b^5)*sqrt(b)*weierstrassPInverse(4/3*(4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, 1/3*(3*b*cos(d*x + c) - 3*I*b*sin(d*x + c) + 2*a)/b) - 3*sqrt(2)*(10*I*C*a^4*b - 45*I*B*a^3*b^2 - 3*I*(161*A + 93*C)*a^ 2*b^3 - 435*I*B*a*b^4 - 21*I*(9*A + 7*C)*b^5)*sqrt(b)*weierstrassZeta(4/3* (4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, weierstrassPInverse(4/3* (4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, 1/3*(3*b*cos(d*x + c) + 3*I*b*sin(d*x + c) + 2*a)/b)) - 3*sqrt(2)*(-10*I*C*a^4*b + 45*I*B*a^3*b^2 + 3*I*(161*A + 93*C)*a^2*b^3 + 435*I*B*a*b^4 + 21*I*(9*A + 7*C)*b^5)*sqrt( b)*weierstrassZeta(4/3*(4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, w eierstrassPInverse(4/3*(4*a^2 - 3*b^2)/b^2, -8/27*(8*a^3 - 9*a*b^2)/b^3, 1 /3*(3*b*cos(d*x + c) - 3*I*b*sin(d*x + c) + 2*a)/b)) + 6*(35*C*b^5*cos(d*x + c)^3 + 5*C*a^3*b^2 + 135*B*a^2*b^3 + (231*A + 163*C)*a*b^4 + 75*B*b^5 + 5*(19*C*a*b^4 + 9*B*b^5)*cos(d*x + c)^2 + (75*C*a^2*b^3 + 135*B*a*b^4 + 7 *(9*A + 7*C)*b^5)*cos(d*x + c))*sqrt(b*cos(d*x + c) + a)*sin(d*x + c))/(b^ 3*d)
Timed out. \[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\text {Timed out} \]
\[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \,d x } \]
\[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \,d x } \]
Timed out. \[ \int (a+b \cos (c+d x))^{5/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int {\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]